<template>
  <div class="404-box">
    <div>
      <img class="img404" src="@/assets/imgs/404_images/404.png" alt="" />
      <div class="bottom404">
        <p>对不起，出错啦</p>
        <p class="error_dec">您访问的页面不存在</p>
        <!-- <van-button class="returnbtn" @click="returnIndex()">首页</van-button> -->
      </div>
    </div>
  </div>
</template>
<script setup>
import { onMounted, computed, provide, inject, ref, reactive, nextTick, toRefs } from 'vue'
import { useRoute, useRouter } from 'vue-router'
const router = useRouter()
const route = useRoute()
function returnIndex() {
  router.push({
    path: '/'
  })
}
</script>

<style lang="less" scoped>
.img404 {
  width: 80%;
  margin-left: 18%;
  margin-top: 6rem;
}

.bottom404 {
  text-align: center;
  margin-top: -2rem;
}

.bottom404 p:first-child {
  font-family: PingFangSC-Regular;
  font-size: 1.2rem;
  color: #333333;
  text-align: center;
}

.bottom404 .error_dec {
  font-family: PingFangSC-Regular;
  font-size: 0.9rem;
  color: #666666;
  text-align: center;
  line-height: 25px;
  width: 60%;
  margin: 0 auto;
}

.returnbtn {
  background: #ff1700;
  border-radius: 100px;
  border-radius: 100px;
  color: #fff;
  width: 7rem;
  font-family: PingFangSC-Regular;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  line-height: 17px;
  margin-top: 1.5rem;
}
</style>
